/*
 * Copyright (c) 2007-2020 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.edu.core.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.github.lvyanyang.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 试卷试题明细
 * @author 马星俊 maxingjun@xci96716.com
 * @since 2020-11-25 10:52:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "试卷试题明细")
public class ExamPaperDetails extends BaseEntity {
    /**
     * 试题主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "试题主键不能为空")
    @Excel(name = "试题主键", width = 20d)
    @ApiModelProperty(value = "试题主键", required = true, position = 1)
    private Long questionId;

    /**
     * 试卷主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "试卷主键不能为空")
    @Excel(name = "试卷主键", width = 20d)
    @ApiModelProperty(value = "试卷主键", required = true, position = 2)
    private Long paperId;

    /**
     * 排序号
     */
    @NotNull(message = "排序号不能为空")
    @Excel(name = "排序号", width = 20d)
    @ApiModelProperty(value = "排序号", required = true, position = 3)
    private Integer path;

}